package com.Brave.manager.Demo02;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Demo02 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("D:\\JAVA\\File\\a.txt");
        char[] cs = new char[1024];
        int len;

        while ((len = fr.read(cs)) != -1){
            System.out.println(new String(cs,0,len));
        }

        fr.close();

    }
}
